home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 2000 July
/
Computer Buyer July 2000.iso
/
APPLIC
/
NEWSOED.SMM
< prev
next >
Wrap
INI File
|
1996-07-30
|
8KB
|
616 lines
[ver]
4
[sty]
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
HP LaserJet III
[port]
LPT3:
[lang]
2
[fldnames]
Field1
Field2
Field3
Field4
Field5
Field6
Field7
Field8
[desc]
838767459
21
781796939
277
3
0
0
0
0
1
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[tag]
Body Text
2
[fnt]
Arial
240
0
16384
[algn]
1
1
216
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
16
0
0
[nfmt]
272
1
2
.
,
</c>
Body Text
0
0
[tag]
Body Single
3
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
0
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
0
0
0
[nfmt]
272
1
2
.
,
</c>
Body Single
0
0
[tag]
Function
4
[fnt]
Arial
240
0
16385
[algn]
1
1
0
0
0
[spc]
33
244
1
0
0
1
100
[brk]
68
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
1
0
1
1
0
0
0
0
[nfmt]
272
1
2
.
,
</c>
Body Text
0
0
[lay]
Standard
516
[rght]
16833
11908
1
1440
1440
1
1440
1440
0
1
0
1
0
2
1
1440
10465
12
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
[hrght]
[lyfrm]
1
11200
0
0
11908
1440
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1440
11908
1
1440
72
1
792
1440
0
1
0
1
1
0
1
1440
10465
1
3
9360
[txt]
>
[frght]
[lyfrm]
1
13248
0
15393
11908
16833
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
16833
11908
1
1440
792
1
15465
1440
0
1
0
1
1
0
1
1440
10465
2
2
4680
3
9360
[txt]
>
[elay]
[l1]
0
[pg]
3
16 0 6 512 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
64 0 0 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
75 0 2 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
<:#284,9025>
<:#293,9025><+!>' This macro looks up the current selection in the New SOED<-!><+!>
<-!><+!>from Ami Pro<-!>
<:#293,9025><+!>'
<:#293,9025><+!>' It is also possible to put a smarticon on the icon bar.<-!>
<:#293,9025><+!>' to do this select "SmartIcons" from the "Tools" menu.<-!>
<:#293,9025><+!>' Select Edit Icon to create an Icon.
<:#293,9025><+!>' Select or create an icon in this dialog.<-!><+!>
<:#293,9025><+!>' Select the "newsoed.smm" macro from the directory where it is installed.
<-!>
<:#293,9025><+!>' Also put a description in the description field (like "lookup in New 'SOED")
<-!>
<:#293,9025><+!>' Select OK.
<:#293,9025><+!>' Select your icon from the list of available icons and drag it
<-!>
<:#293,9025><+!>' to the second list of icons and select OK<-!> <+!>again.<-!>
<:#293,9025><+!>'
<+@><:S+-1><:#293,9025><+!><-!><+!>' Installation complete; the lines below are the macro instructions,
<+@><:S+-1><:#293,9025><+!>' please ignore these.<-!>
<+@><:S+-1><**><:p<* >>
<+@><:S+-1><:#293,9025><+!>' Macro Text<-!>
<+@><:S+-1><:#284,9025>
<:S+-1><:#284,9025>FUNCTION NewSOED()
<:S+-1><:#284,9025>
<+@><:S+-1><:#293,9025><+!><:f240,BArial,0,0,0>' Retrieve path, filename and DDE Service name of<-!>
<+@><:S+-1><:#293,9025><+!><:f240,BArial,0,0,0>' the New Shorter<-!>
<+@><:S+-1><:#284,9025><:f240,BArial,0,0,0>path$ = GetProfileString$("Macro"<:f><:f240,BArial,0,0,0>, "PathName", "newsoed.ini")
<+@><:S+-1><:#284,9025><:f240,BArial,0,0,0>exename$ = GetProfileString$(<:f><:f240,BArial,0,0,0>"Macro"<:f><:f240,BArial,0,0,0>, "ExeName"<:f><:f240,BArial,0,0,0>,
<:f><:f240,BArial,0,0,0>"newsoed<:f><:f240,BArial,0,0,0>.ini"<:f><:f240,BArial,0,0,0>)
<+@><:S+-1><:#284,9025><:f240,BArial,0,0,0>sername$ = GetProfileString$(<:f><:f240,BArial,0,0,0>"Macro"<:f><:f240,BArial,0,0,0>, "ServiceName"<:f><:f240,BArial,0,0,0>,
<:f><:f240,BArial,0,0,0>"newsoed<:f><:f240,BArial,0,0,0>.ini"<:f><:f240,BArial,0,0,0>)<:f>
<+@><:S+-1><:#284,9025>appname$= <:f240,BArial,0,0,0>GetProfileString$(<:f><:f240,BArial,0,0,0>"Macro"<:f><:f240,BArial,0,0,0>, "AppName"<:f><:f240,BArial,0,0,0>,
<:f><:f240,BArial,0,0,0>"newsoed<:f><:f240,BArial,0,0,0>.ini"<:f><:f240,BArial,0,0,0>)<:f>
<+@><:S+-1><:#284,9025>
<+@><:#284,9025><:f240,BArial,0,0,0>fullpath$ = strcat$(path$ , "\" , exename$<:f>)
<:#284,9025><:f240,BArial,0,0,0>
<:#293,9025><:f240,BArial,0,0,0><+!>' Try to make a connection<-!>
<:#284,9025>IF AppIsRunning(appname$)
<:#284,9025><:f240,BArial,0,0,0> id = DDEInitiate(<:f><:f240,BArial,0,0,0>sername$<:f><:f240,BArial,0,0,0>, "AmiPro"<:f><:f240,BArial,0,0,0>)<:f>
<:#284,9025> ActivateApp(appname$)
<:#284,9025>ELSE
<:#284,9025> Exec(<:f240,BArial,0,0,0>fullpath$<:f>,"")
<:#284,9025> Pause(5)
<:#284,9025> id = DDEInitiate(<:f240,BArial,0,0,0>sername$<:f>, "AmiPro")
<:#284,9025> tries = 0
<:#284,9025> WHILE id = 0 AND tries << 5
<:#284,9025> Pause(5)
<:#284,9025> id = DDEInitiate(<:f240,BArial,0,0,0>sername$<:f>, "AmiPro")
<:#284,9025> tries = tries + 1
<:#284,9025> WEND
<:#284,9025>ENDIF
<:#284,9025>
<:#293,9025><+!>' Check to see that a conversation has been initiated<-!>
<:#284,9025>IF id = 0
<:#284,9025> Message("The Macro to search in the New Shorter Failed")
<:#284,9025> Exit Function
<:#284,9025>ENDIF
<:#284,9025>
<:#293,9025><+!>' Set up an error address<-!>
<:#284,9025>onerror endit
<:#284,9025>
<:#293,9025><+!>' Send the selection to the New Shorter<-!>
<:#284,9025>selected$ = Left$(CurShade$(), 60)
<:#284,9025>IF selected$ = ""
<:#284,9025> IF (NOT(CurChar$() = " "))
<:#284,9025> type("<[>CTRLRIGHT]")
<:#284,9025> ENDIF
<:#284,9025> type("<[>CTRLSHIFTLEFT]")
<:#284,9025> selected$ = Left$(CurShade$(), 60)
<:#284,9025>ENDIF
<:#284,9025>
<:#284,9025>DDEExecute(id, selected$)
<:#284,9025>
<:#293,9025><+!>' Terminate the conversation<-!>
<:#284,9025>endit:
<:#284,9025>DDETerminate(id)
<:#284,9025>
<+@><:S+-1><:#284,9025>END FUNCTION
<+@><:S+-1><:#284,9025>
<+@><:S+-1><:#284,9025>
<+@><:S+-1><:#284,9025>
<:#284,9025><-!>
>
[Embedded]
00006836
>
[macsum] 1
NewSOED 0 0 9 18
[macse]
14 NewSOED
0 286 "Macro" "PathName" "newsoed.ini"
13
8 1
0 286 "Macro" "ExeName" "newsoed.ini"
13
8 2
0 286 "Macro" "ServiceName" "newsoed.ini"
13
8 3
0 286 "Macro" "AppName" "newsoed.ini"
13
8 4
0 16 "{1}" "\" "{2}"
13
8 5
0 1032 "{4}"
13
11 00000325
0 8 "{3}" "AmiPro"
13
8 6
0 38 "{4}"
10 00000509
0 22 "{5}" ""
0 274 5
0 8 "{3}" "AmiPro"
13
8 6
5 0
8 7
6 6
5 0
18 0
6 7
5 5
18 5
1 1
11 00000509
0 274 5
0 8 "{3}" "AmiPro"
13
8 6
6 7
5 1
3 0
8 7
10 00000388
6 6
5 0
18 0
11 00000603
0 3 "The Macro to search in the New Shorter Failed"
6 0
15
9
20 00000802
0 24
13
0 806 [X] 60
13
8 8
6 8
7 ""
18 0
11 00000784
0 282
13
7 " "
18 0
1 3
11 00000736
0 6 "[16423]"
0 6 "[20517]"
0 24
13
0 806 [X] 60
13
8 8
0 11 "{6}" "{8}"
0 9 "{6}"
6 0
15
9
00006861